#ifndef DELETEFIELDDIALOG_H
#define DELETEFIELDDIALOG_H

#include <QDialog>
#include <QPushButton>
#include <QComboBox>
#include <QLineEdit>
#include <QFormLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QStringList>
#include "util/appevent.h"
#include "Geo/map/geofielddefn.h"

namespace Ui {
class DeleteFieldDialog;
}

class DeleteFieldDialog : public QDialog
{
    Q_OBJECT

public:
    explicit DeleteFieldDialog(QStringList fieldListIn,QWidget *parent = nullptr);
    ~DeleteFieldDialog();
    void iniMainDialog();
signals:
    void sigDeleteField(int fieldIndex);
private slots:
    void on_btnOK_clicked();
    void on_btnCancel_clicked();
private:
    QComboBox *comboxFieldList;

    QPushButton *btnOK;
    QPushButton *btnCancel;

    QStringList fieldList;
private:
    Ui::DeleteFieldDialog *ui;
};

#endif // DELETEFIELDDIALOG_H
